home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gold Medal Software 3
/
Gold Medal Software - Volume 3 (Gold Medal) (1994).iso
/
bbsutils
/
thtmt227.arj
/
PURGE.PPE
(
.txt
)
< prev
next >
Wrap
PCBoard Programming Language Executable
|
1994-02-15
|
4KB
|
226 lines
;------------------------------------------------------------------------------
; .ss.
; `²²'
; .,sS$Ss,,s$ .,sS$$$Ss. .,sS$Ss,,s$ .ss. .sSs.
; .d$$²^°²$$$$'.d$P²°^^²$P'.d$$²^°²$$$$'.$$$' .$$$²Sb,.
; $$$' .$$$' $$$²Sçsµ²' .$$$' .$$$'.$$$' .$$$' `$$b.
; $$$b,,d$$$' ,$$$b,....,s$$$$b,,d$$$'.$$$;.,$$$' ;$$$
; `²S$$S²²S$$S²°²S$$$$S²°°²S$$$$$$',$$S²°²S$S'.sS$$$P²'
; .sS²°$$$²²°"' d²°'
; .$$² .$$'
; $$$.,d$$'
; `²S$$S²'
;------------------------------------------------------------------------------
; P.P.L.X. 2.OO (C)1996 - Lone Runner / AEGiS CoRP'96
;------------------------------------------------------------------------------
; PPE 2.OO (plain) - Analysis ON - Postprocessing ON
;------------------------------------------------------------------------------
Integer INTEGER001
Integer INTEGER002
Integer INTEGER003
Integer INTEGER004
Integer INTEGER005
Integer INTEGER006
String STRING001
String STRING002
String STRING003
String STRING004
String STRING005
String STRING006
String STRING007
String STRING008
String STRING009
String STRING010
;------------------------------------------------------------------------------
FDefIn 1
:LABEL001
StartDisp 1
STRING001 = 3
INTEGER001 = 0
INTEGER002 = 0
INTEGER003 = 0
INTEGER004 = 0
INTEGER005 = 3
INTEGER006 = 2
FOpen 1, PPEPath() + "tht-info.cfg", 0, 0
FGet 1, STRING002
FClose 1
Cls
FOpen 1, PPEPath() + "apps\waiting.app", 2, 0
:LABEL002
If (Ferr(1)) Goto LABEL003
FGet 1, STRING005
AnsiPos INTEGER006, INTEGER005
PrintLn STRING005
Inc INTEGER005
If (INTEGER005 > 19) Then
INTEGER006 = INTEGER006 + 24
INTEGER005 = 3
Endif
Goto LABEL002
:LABEL003
FClose 1
STRING006 = ""
AnsiPos 5, 21
InputStr "@X0EWhich User to Purge", STRING006, 14, 45, Mask_Ascii(), 4 + 8
If (STRING006 == "") Goto LABEL009
FOpen 1, PPEPath() + "apps\waiting.app", 2, 0
:LABEL004
If (Ferr(1)) Goto LABEL005
FGet 1, STRING005
If (STRING006 == STRING005) Then
FClose 1
Else
Goto LABEL004
:LABEL005
Newlines 2
PrintLn "Did not Find " + STRING006 + " In the LIST !!!!"
FreshLine
Wait
FClose 1
Goto LABEL001
Endif
Tokenize STRING006
If (TokCount() == 3) Then
GetToken STRING007
GetToken STRING008
GetToken STRING009
STRING007 = Strip(STRING007, " ")
STRING008 = Strip(STRING008, " ")
STRING007 = Strip(STRING007, ".")
STRING008 = Strip(STRING008, ".")
STRING009 = Strip(STRING009, ".")
STRING009 = Strip(STRING009, " ")
STRING007 = Left(STRING007, 3)
STRING008 = Right(STRING009, 4)
Else
GetToken STRING007
GetToken STRING008
STRING007 = Strip(STRING007, " ")
STRING008 = Strip(STRING008, " ")
STRING007 = Strip(STRING007, ".")
STRING008 = Strip(STRING008, ".")
STRING007 = Left(STRING007, 3)
STRING008 = Right(STRING008, 4)
Endif
FClose 2
Cls
AnsiPos 7, 1
PrintLn "@X7ENew User@X7F'@X7Es Purge @X7Ffrom @X74Master Beta @X7F@ @X74<<@X7ETHT@X74>>@X07"
AnsiPos 30, 2
PrintLn "@X1Fv 1@X1F.@X1C00@X07"
AnsiPos 6, 3
PrintLn "@X34@X08╔════════════════════════════════════════════════════╗@X07"
AnsiPos 6, 4
PrintLn "@X08║ @X3E@X0E" + STRING006 + "@POS:25@" + " " + "@POS:59@@X08║@X07"
AnsiPos 6, 5
PrintLn "@X34@X08╚════════════════════════════════════════════════════╝@X07"
FreshLine
STRING010 = ""
InputStr "@X0EAre you Sure ", STRING010, "", 1, "YyNn", 8 + 4
If (STRING010 == NoChar()) Goto LABEL001
If (STRING010 == YesChar()) Goto LABEL000
FOpen 1, PPEPath() + "apps\waiting.app", 2, 0
FAppend 2, PPEPath() + "apps\waiting.tmp", 1, 0
:LABEL006
If (Ferr(1)) Goto LABEL007
FGet 1, STRING004
If (STRING004 == "") Goto LABEL008
If (STRING004 == STRING006) Then
PrintLn
Else
FPutLn 2, STRING004
Endif
Goto LABEL006
:LABEL007
FClose 2
:LABEL008
FClose 1
FClose 2
Copy PPEPath() + "APPS\waiting.tmp", PPEPath() + "APPS\waiting.app"
Delete PPEPath() + "APPS\waiting.tmp"
Delete PPEPath() + "apps\" + STRING007 + "_" + STRING008 + ".vot"
Delete PPEPath() + "apps\" + STRING007 + "_" + STRING008 + ".GRP"
Delete PPEPath() + "apps\" + STRING007 + "_" + STRING008 + ".cmt"
For STRING003 = STRING002 To 1 Step -1
Delete PPEPath() + "apps\" + STRING007 + "_" + STRING008 + "." + STRING003
Next
Goto LABEL001
:LABEL009
FClose 1
FClose 2
End
;------------------------------------------------------------------------------
;
; Usage report (before postprocessing)
;
; ■ Statements used :
;
; 1 End
; 2 Cls
; 1 Wait
; 22 Goto
; 27 Let
; 8 PrintLn
; 12 If
; 4 FOpen
; 1 FAppend
; 10 FClose
; 4 FGet
; 1 FPutLn
; 1 StartDisp
; 5 Delete
; 2 InputStr
; 1 Inc
; 1 Newlines
; 1 Tokenize
; 5 GetToken
; 7 AnsiPos
; 2 FreshLine
; 1 FDefIn
; 1 Copy
;
;
; ■ Functions used :
;
; 3 -
; 39 +
; 7 ==
; 1 <
; 1 <=
; 1 >
; 2 >=
; 8 !
; 2 &&
; 1 ||
; 2 Left()
; 2 Right()
; 3 Ferr()
; 1 NoChar()
; 1 YesChar()
; 10 Strip()
; 1 Mask_Ascii()
; 12 PPEPath()
; 1 TokCount()
;
;------------------------------------------------------------------------------
;
; Analysis flags : No flag
;
;------------------------------------------------------------------------------
;
; Postprocessing report
;
; 1 For/Next
; 0 While/EndWhile
; 4 If/Then or If/Then/Else
; 0 Select Case
;
;------------------------------------------------------------------------------
; AEGiS Corp - Break the routines, code against the machines!
;------------------------------------------------------------------------------